package com.springBoot.DataSource01.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.springBoot.pojo.User;

public interface UserMapper01 {
	
	@Select("SELECT * FROM `user1`")
	List<User> getUserList(int page,int pageSize);

	@Insert("INSERT INTO `user1`(`loginName`,`realName`,`password`) VALUES(#{loginName}, #{realName}, #{password})")
	int addUser(@Param("loginName")String loginName,
				@Param("realName")String realName,
				@Param("password")String password);

}
